﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BOOKSTORE.DATA.Models
{
    public class ProducManager : DatabaseContext
    {
      public List<Language> GetLanguageByID(string languageCode)
        {
          try
          {
              DatabaseContext db = new DatabaseContext();
              return db.BookstoreContext.Languages.Where(m => m.LanguageCode == languageCode).ToList();
         
          }
          catch(Exception ex)
          {
              throw (new Exception("ProducManager_GetlanguageByID"));
          }
         
        }

    }
}
